#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    this->_stu = new student(this);
    this->_teacher = new teacher(this);
    connect(this->_teacher,&teacher::mySignal,this->_stu,&student::mySlots);
    this->_teacher->sendSignal();
}

Widget::~Widget()
{
    delete ui;
}

